home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / ae / code / ax3.00 / myinfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1980-01-03  |  3.3 KB  |  85 lines

  1. /* myinfo.h */
  2.  
  3. struct txt {
  4.   struct txt *next;
  5.   char *txt;
  6. };
  7.  
  8. /* my_struct.flags */
  9. #define DO_ERRORLOG  (ULONG) 0x000001
  10. #define DO_SYSOPLOG  (ULONG) 0x000002
  11. #define VALID_USER   (ULONG) 0x000010
  12.  
  13. #define MAX_SAYINGS 50
  14.  
  15. struct rndsay {
  16.   char *saying[MAX_SAYINGS+1];          /* text to show */
  17.   UBYTE rnum;                            /* num of random sayings */
  18.   UBYTE type;
  19. };
  20.  
  21.  
  22. struct myst {
  23.  long zoom_mailcnt;            /* num msgs of mail zoomed */
  24.  char *zoom_mailfile;       /* path & name of created zoom file */
  25.  char *zoom_path;             /* our defined path for zoom mail */
  26.  long maxdbytes;             /* max download bytes per session, anyone */
  27.  long sessiondbytes;         /* current user dnloaded bytes per session */
  28.  int newuser;
  29.  long times_on;              /* Times on system */
  30.  int AnsiColor;
  31.  char *startchatfile;        /* the file itsself */
  32.  char *stopchatfile;         /* the file itsself */
  33.  char *quotefile;
  34.  int startchatnum;           /* number of sayings in file */
  35.  int  stopchatnum;           /* number of lines in the file */
  36.  int quotenum;               /* number of quotes */
  37.  int numlastcallers;         /* number of last callers to display */
  38.  USHORT lastcallerlevel;        /* min level to display last callers log */
  39.  struct txt *callerlist;        /* also for callers list */
  40.  char *newuserfile;          /* path:filename of the new user must read file */
  41.  int max_desclines;          /* Max number of lines in file descriptions */
  42.  UWORD UPcps;                /* highest uploaded cps rate */
  43.  UWORD DNcps;                /* highest dnload cps rate */
  44.  char *UPcps_name;           /* highest upload cps rate users name */
  45.  char *UPcps_place;          /* where user is from */
  46.  char *DNcps_name;           /* highest dnload cps rate users name */
  47.  char *DNcps_place;          /* where user is from */
  48.  ULONG flags;                /* program options flag */
  49.  UBYTE cosysop_level;        /* cosysop level */
  50.  char *countryname;          /* country name where bbs is run */
  51.  char *notallowedfiles;      /* ptr to files not allowed list */
  52.  char *skiplcaller;          /* skip lastcallers, users in this list don't show */
  53.  struct rndsay *menu_say;    /* random things to display in the menu */
  54.  UBYTE nozoom[MAX_CONFS];    /* don't zoom these conferences */
  55.  int   zoommax;              /* max number of zoom msgs outputted */
  56.  /* add struct txt *no2400  or set up a filesize no 2400 can see */
  57.  /* like dir1 .. then add other places to search for duplicates */
  58. };
  59.  
  60. /*--- User.Keys UserFlags */
  61. #define USER_NEWMSG       (UWORD) 0x0001     /* show new user message */
  62. #define USER_TOCONF1      (UWORD) 0x0002
  63. #define USER_ONETIME_MSG  (UWORD) 0x0004     /* show all users only once */
  64. #define USER_SCRNCLR      (UWORD) 0x0008
  65. #define USER_DONATED      (UWORD) 0x0010
  66.  
  67.  
  68. /* MDate.c flags */
  69. #define TODAY_DATE       (UWORD) 0x0000
  70. #define YESTERDAY_DATE   (UWORD) 0x0001
  71. #define MYTIMEFMT      "%02.2d:%02.2d:%02.2d"
  72. #define MYDATEFMT      "%02.2d-%02.2d-%02.2d"
  73.  
  74. #define MAX_DATE_STRING  20                     /* xx-xx-xx  */
  75.  
  76. /* protos */
  77. int check_fordup(char *tx, char *nam);
  78. int show_lastcallers(struct txt *tx,int color);
  79. //int MDate(long *MY_time,char *MY_datestr, char *MY_timestr, UWORD flg);
  80. //void reset_struct(void);
  81. //void center(char *, int);
  82. int find_str(char *search_string, char *txt);
  83. void get_todays_uploads(void);
  84. void StripReturn(char *);
  85.